package org.csc.sss.core.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import lombok.Data;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.annotations.GenericGenerator;

/**
 * 
 * <pre>
 * 用户表
 * </pre>
 * <small> 2018-05-09 11:33:45 | csc</small>
 */
@Data
@Entity
@Table(name = "sys_user")
public class SysUser{

    public SysUser() {
    }

    public SysUser(String id) {
        this.id = id;
    }
    

    @Id
    @GenericGenerator(name = "pk_uuid", strategy = "uuid")
    @GeneratedValue(generator = "pk_uuid")
    @ApiModelProperty("ID")
    private String id;


    @Column(name = "nickname")
    @ApiModelProperty("昵称")
    private String nickname;


    @Column(name = "email")
    @ApiModelProperty("邮箱")
    private String email;


    @Column(name = "pswd")
    @ApiModelProperty("密码")
    private String pswd;


    @Column(name = "status")
    @ApiModelProperty("状态")
    private Integer status;


    @Column(name = "create_time")
    @ApiModelProperty("创建时间")
    private Date createTime;


    @Column(name = "last_login_time")
    @ApiModelProperty("最后登录时间")
    private Date lastLoginTime;


    public static final String ID = "id";
    public static final String NICKNAME = "nickname";
    public static final String EMAIL = "email";
    public static final String PSWD = "pswd";
    public static final String STATUS = "status";
    public static final String CREATE_TIME = "createTime";
    public static final String LAST_LOGIN_TIME = "lastLoginTime";


}
